import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './css/globat.css'
import axios from 'axios'
import echarts from 'echarts'
Vue.prototype.$publicURL = './'
Vue.prototype.$echarts = echarts
require('./api/init.js') // 导入并执行 leancloud 初始化操作
Vue.prototype.$axios = axios // 全局注册，使用方法为：this.$axios
axios.interceptors.request.use(config => {
  console.log(config)
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
